package com.wulian.dao;

import com.wulian.entities.Patient;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xf
 * @date 2021/3/20 下午 1:11
 * @Description
 */
@Repository
public interface PatientDao {

    List<Patient> getAll();

    List<Patient> getAllByPage(@Param("pageNum")Integer num, @Param("pageSize")Integer size);

    Patient getPatientById(Long id);

    void addPatient(Patient patient);

    void updatePatient(Patient patient);

    void deletePatientById(Long id);


}
